package top.infopub.model.cap;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import top.infopub.generic.GenericEntity;

import java.math.BigDecimal;
import java.util.Date;

/** 融资付息(CAP_PAY_INTEREST) **/
public class PayInterestDetail extends GenericEntity  {
	private static final long serialVersionUID = 1L;

	/** SGUID */
	private String id;

	/** 付息主表ID */
	private String payInterestId;

	/** 合同名称 */
	private String contractName;

	/** 金融机构名称 */
	private String financeOrgName;

	/** 贷款金额(历史放款总金额) */
	private BigDecimal loanAmt;

	/** 综合成本 */
	private String compCost;

	/** 贷款余额 */
	private BigDecimal loanBalance;

	/** 开始计息日 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date intBeginDate;

	/** 结束计息日 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date intEndDate;

	/** 计息天数 */
	private BigDecimal intCountDay;

	/** 计划付息金额 */
	private BigDecimal planPayIntAmt;

	/** 利率 */
	private BigDecimal intRate;

	/** 类型，1=放款，2=扣除还款，3=新放款 */
	private String types;

	/** 添加人 */
	private String addBy;

	/** 添加时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date addTime;

	/** 最后修改人 */
	private String uptBy;

	/** 最后修改时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date uptTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPayInterestId() {
		return payInterestId;
	}

	public void setPayInterestId(String payInterestId) {
		this.payInterestId = payInterestId;
	}

	public String getContractName() {
		return contractName;
	}

	public void setContractName(String contractName) {
		this.contractName = contractName;
	}

	public String getFinanceOrgName() {
		return financeOrgName;
	}

	public void setFinanceOrgName(String financeOrgName) {
		this.financeOrgName = financeOrgName;
	}

	public BigDecimal getLoanAmt() {
		return loanAmt;
	}

	public void setLoanAmt(BigDecimal loanAmt) {
		this.loanAmt = loanAmt;
	}

	public String getCompCost() {
		return compCost;
	}

	public void setCompCost(String compCost) {
		this.compCost = compCost;
	}

	public BigDecimal getLoanBalance() {
		return loanBalance;
	}

	public void setLoanBalance(BigDecimal loanBalance) {
		this.loanBalance = loanBalance;
	}

	public Date getIntBeginDate() {
		return intBeginDate;
	}

	public void setIntBeginDate(Date intBeginDate) {
		this.intBeginDate = intBeginDate;
	}

	public Date getIntEndDate() {
		return intEndDate;
	}

	public void setIntEndDate(Date intEndDate) {
		this.intEndDate = intEndDate;
	}

	public BigDecimal getIntCountDay() {
		return intCountDay;
	}

	public void setIntCountDay(BigDecimal intCountDay) {
		this.intCountDay = intCountDay;
	}

	public BigDecimal getPlanPayIntAmt() {
		return planPayIntAmt;
	}

	public void setPlanPayIntAmt(BigDecimal planPayIntAmt) {
		this.planPayIntAmt = planPayIntAmt;
	}

	public BigDecimal getIntRate() {
		return intRate;
	}

	public void setIntRate(BigDecimal intRate) {
		this.intRate = intRate;
	}

	public String getTypes() {
		return types;
	}

	public void setTypes(String types) {
		this.types = types;
	}

	public String getAddBy() {
		return addBy;
	}

	public void setAddBy(String addBy) {
		this.addBy = addBy;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getUptBy() {
		return uptBy;
	}

	public void setUptBy(String uptBy) {
		this.uptBy = uptBy;
	}

	public Date getUptTime() {
		return uptTime;
	}

	public void setUptTime(Date uptTime) {
		this.uptTime = uptTime;
	}
}